package kr.co.hanbit;

/*p.222 array basic */
public class ArrayEx1 {

	public static void main(String[] args) {
		char[] ch; // array declaration
		ch = new char[4]; // array create
		
		// char[] ch = new char[4]; // same as upline
		
		// array initialize
		ch[0] = 'J';
		ch[1] = 'a';
		ch[2] = 'v';
		ch[3] = 'a';
		
		// array print
		for(int i=0; i <ch.length; i++)
			System.out.println("ch["+i+"]:"+ch[i]);
	}
}
